import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '商户名称',
    align: "center",
    dataIndex: 'merchantName'
  },
  {
    title: '商户图片',
    align: "center",
    dataIndex: 'merchantImage',
    customRender: render.renderImage,
  },
  {
    title: '归属商场',
    align: "center",
    dataIndex: 'mail_dictText'
  },
  {
    title: '管理员',
    align: "center",
    dataIndex: 'admin_dictText'
  },
  {
    title: '商户地址',
    align: "center",
    dataIndex: 'merchantAddress'
  },
  {
    title: '账号状态',
    align: "center",
    dataIndex: 'accountStatus_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  merchantName: {title: '商户名称',order: 0,view: 'text', type: 'string',},
  merchantImage: {title: '商户图片',order: 1,view: 'image', type: 'string',},
  mail: {title: '归属商场',order: 2,view: 'sel_user', type: 'string',},
  admin: {title: '管理员',order: 3,view: 'sel_user', type: 'string',},
  merchantAddress: {title: '商户地址',order: 4,view: 'textarea', type: 'string',},
};
